package com.htfyun.pdfview;

import android.graphics.Bitmap;
import android.view.View;

/**
 * Created by sst on 2018/1/23.
 */

public class PWSurfaceOfGrafftiView implements IPWSurfaceView {

    private int drawObjectType;
    private int penSettingWidth;
    
    private GraffitiView graffitiView;
    public PWSurfaceOfGrafftiView(GraffitiView view) {
        
        graffitiView = view;
    }

    @Override
    public Bitmap getBitmap() {
        return graffitiView.getBitmap();
    }

    @Override
    public void clear() {
        graffitiView.clear();
    }

    @Override
    public void undo() {
        graffitiView.undo();
    }

    @Override
    public void setHostView(View hostView) {

    }

    @Override
    public void setVisibility(int visibility) {
        graffitiView.setVisibility(visibility);
    }

    @Override
    public void setDrawObjectType(int drawObjectType) {
        this.drawObjectType = drawObjectType;
    }

    @Override
    public int getDrawObjectType() {
        return drawObjectType;
    }

    @Override
    public void setPenSettingWidth(int penSettingWidth) {
        this.penSettingWidth = penSettingWidth;
    }

    @Override
    public int getPenSettingWidth() {
        return penSettingWidth;
    }
}
